package com.lcp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lcp.entity.HealthLecture;

import java.util.List;
import java.util.Map;

public interface HealthLectureService {
    HealthLecture getById(Long id);
    
    IPage<HealthLecture> page(Integer pageNum, Integer pageSize, String status, String keyword);
    
    HealthLecture create(HealthLecture lecture);
    
    HealthLecture update(HealthLecture lecture);
    
    void delete(Long id);
    
    void incrementViewCount(Long id);
    
    void incrementLikeCount(Long id);
    
    void incrementParticipants(Long id);
    
    void decrementParticipants(Long id);
    
    List<HealthLecture> getUpcomingLectures(Integer limit);
    
    List<HealthLecture> getOngoingLectures();
    
    List<HealthLecture> getFinishedLectures(Integer limit);
    
    Map<String, Object> getLectureStatistics();
} 